# 编写一个将十进制转换为二进制的函数，采用除2取余的方式


def dec_two_bin(dec):
    temp = []
    result = ""
    while dec:
        quo = dec % 2
        dec = dec // 2
        temp.append(quo)
    while temp:
        result += str(temp.pop())
    return result


if __name__ == "__main__":
    print(dec_two_bin(5))